-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependency nuqs to v2 #4509
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
👍 @renovate[bot] Thank you for raising your pull request and contributing to our Community |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4509 +/- ##
=========================================
Coverage 92.29% 92.29%
=========================================
Files 496 496
Lines 36194 36194
Branches 2330 3436 +1106
=========================================
Hits 33407 33407
Misses 2787 2787
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This PR contains the following updates:
^1.20.0
->^2.0.0
Release Notes
47ng/nuqs (nuqs)
v2.1.1
Compare Source
Bug Fixes
v2.1.0
Compare Source
Bug Fixes
Features
v2.0.4
Compare Source
Bug Fixes
v2.0.3
Compare Source
Bug Fixes
v2.0.2
Compare Source
Bug Fixes
v2.0.1
Compare Source
Bug Fixes
v2.0.0
Compare Source
Bug Fixes
chore
nuqs/parsers
tonuqs/server
(b6bdc66)Features
BREAKING CHANGES
to validate at runtime and infer the type of the returned data.
UseQueryStatesOptions
is now generic over the key map(the object containing parser definitions you pass to useQueryStates),
and is now a type rather than an interface.
with a NuqsAdapter, which is a context provider connecting
your framework APIs to the hooks' internals.
startTransition
option no longerautomatically sets
shallow: false
. TheOptions
typeis no longer generic.
in the client import (
import {} from 'nuqs'
). It has now been added,meaning that server-side code needs to import from
nuqs/server
to avoid errors like:
Due to a bug in the implementation of shallow routing (WHS),
14.0.3 required a special case for syncing
against external navigation.
In
[email protected]
, we're cleaning this up and requiringa version of Next.js with bug-free support for
shallow routing (with or without experimental WHS
in 14.0.4, and with stabilised WHS in 14.0.5 onwards).
Since the
/parsers
export contained the server cache,this name makes better sense and helps outline the client/server
nature of features in nuqs.
nuqs
name.The debugging printouts no longer check for next-usequerystate, only nuqs.
queryTypes
bag of parsers -> use individualparseAsXYZ
parsersfor better tree-shakeability.
subscribeToQueryUpdates
helper -> since Next.js 14.0.5,useSearchParams
is reactive to shallow search params updatesSince Next has ESM support since v12, it should not really be a breaking change for most.
Big thanks to @andreisocaciu, @tordans, @prasannamestha, @Talent30, @neefrehman, @chbg, @dopry, @weisisheng, @hugotiger, @iuriizaporozhets, @rikbrown, @mateogianolio, @timheerwagen, @psdmsft, and @psdewar for helping !
Configuration
📅 Schedule: Branch creation - "on sunday before 6:00am" in timezone UTC, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.